<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/">

<span py:def="navigation()">
    <span py:if="page_total == 0">No records</span>
    <span py:if="page_total > 1">
        <span py:if="page_current > 1" class="noprint">
            <a href="${replace_query_var('save_list_args', page=1)}">&lt;&lt;</a>
            &nbsp;&nbsp;
            <a href="${replace_query_var('save_list_args', page=page_current - 1)}">Prev</a>
        </span>

        <span py:if="page_current == 1" class="noprint">
            &lt;&lt;
            &nbsp;&nbsp;
            <span>Prev</span>
        </span>
    <span>
        &nbsp;&nbsp; ${page_current} of  ${page_total} &nbsp;&nbsp;
    </span>

        <span py:if="page_current &lt; page_total" class="noprint">
            <a href="${replace_query_var('save_list_args', page=page_current + 1)}">Next</a>
            &nbsp;&nbsp;
            <a href="${replace_query_var('save_list_args', page=page_total)}">&gt;&gt;</a>
        </span>
    
        <span py:if="page_current == page_total" class="noprint">
            <span>Next</span>
            &nbsp;&nbsp;
            &gt;&gt;
        </span>
    </span>
</span>
</html>